//析构函数 new动态分配空间后 使用dele
#include<bits/stdc++.h>
using namespace std;
class Time
{
    public:
        Time();
        Time(int h,int m=0,int s=0);
        void show_time(){
            cout<<"hour:"<<hour<<endl;
            cout<<"minute:"<<minute<<endl;
            cout<<"sec:"<<sec<<endl<<endl;
        };
    private:
        int hour;
        int minute;
        int sec;
};
Time::Time()
{
    hour=0;
    minute=0;
    sec=0;
}
Time::Time(int h,int m, int s)
{
    hour=h;
    minute=m;
    sec=s;
}
int main(){
    Time time1;
    time1.show_time();
    Time time2(8);
    time2.show_time();
    Time time3(8,16);
    time3.show_time();
    Time time4(8,16,32);
    time4.show_time();
    return 0;
}